import request from '@/utils/request'

export async function getProjectQutaListApi(params) {
  var resp = await request({
    url: '/project/projectquota/',
    method: 'get',
    params
  })
  return resp;
}

export async function createProjectQutaApi(data) {
  var resp = await request({
    url: '/project/projectquota/',
    method: 'post',
    data
  })
  return resp
}

export async function updateProjectQutaApi(id, data) {
  var resp = await request({
    url: '/project/projectquota/' + id + '/',
    method: 'put',
    data
  })
  return resp
}

export async function deleteProjectQutaApi(id) {
  var resp = await request({
    url: '/project/projectquota/' + id + '/',
    method: 'delete'
  })
  return resp
}
export async function BatchdeleteProjectQuotaApi(data) {
  var resp = await request({
    url: `/project/projectquota/${data}/batchDelete/`,
    method: 'delete',
    data
  })
  return resp
}
